Identification of content

ABSTRACT

Systems and methods for identifying content in electronic messages are provided. An electronic message may include certain content. The content is detected and analyzed to identify any metadata. The metadata may include a numerical signature characterizing the content. A thumbprint is generated based on the numerical signature. The thumbprint may then be compared to thumbprints of previously received messages. The comparison allows for classification of the electronic message as spam or not spam.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation and claims the priority benefit of U.S. patent application Ser. No. 12/651,327 filed Dec. 31, 2009, which claims the priority benefit of U.S. provisional application No. 61/142,086 filed Dec. 31, 2008 and U.S. provisional application No. 61/228,612 filed Jul. 26, 2009, the disclosures of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention generally relates to identification of content. The present invention more specifically relates to identification of spam content in electronic messages.

2. Description of the Related Art

Electronic mail is a commonly used mode of communication. Because electronic mail is relatively easy and inexpensive to use, it has also become a mode of delivering unsolicited, commercial messages (e.g., spam). While various anti-spam applications are available to lessen the impact of these unsolicited, commercial messages, there are a seemingly equal number of means by which the sender of such messages may circumvent such applications.

One application used to combat spam is the identification and quarantining of spam versus legitimate messages that an individual wishes to receive. Some anti-spam applications use “thumbprints” to identify spam; thumbprints are digital signatures used to represent a known spam message. A problem with using thumbprint signatures is that such signatures may be insensitive to changes in the spam.

For example, a signature may be developed for a particular spam message that includes contact information for an advertised service such as a phone number or an e-mail address. But if a portion of the spam message is subsequently altered (e.g., the phone number or the e-mail address is changed), the signature may no longer be useful to identify that message as spam. A spammer who wishes to circumvent such a system may, simply alter some aspect of the message, thereby making any previous identifications of that message as spam more, if not wholly, inapplicable.

The alteration may not necessarily have to be extensive to avoid identification. Misspelling or omitting certain words or introducing new information may not change the overall context or intent of the message, but may be more than enough to result in an altered thumbprint signature, making the message otherwise unidentifiable to a particular anti-spam application. As such, ‘spammers’ often engage in such techniques to circumvent anti-spam applications.

Images appearing in spam messages are particularly difficult to identify and are especially prone to changes. Minor changes to an image may alter the thumbprint signature, but still clearly convey the intended message. Changes to an image may include cropping, resizing, color variation, skewing, and adding random noise. Proposals on how to identify such images notwithstanding such changes have included extracting robust image features and/or using Fourier transformation and wavelet transformations. The success rate of these alternatives is debatable, especially in light of the fact that implementing such alternatives is complicated, time-consuming, and costly. There is a need in the art for identifying content as spam or an otherwise unsolicited and unwanted electronic message.

SUMMARY OF THE PRESENTLY CLAIMED INVENTION

Embodiments of the present invention include methods and systems for identifying content in electronic messages. The content in a received electronic message may be detected and analyzed to identify any metadata. Such metadata may include a numerical signature characterizing the content. For images, such a numerical signature may include dimension and color information. A thumbprint is generated based on the numerical signature. The thumbprint may then be compared to thumbprints of previously received messages. The comparison allows for classification of the electronic message as spam or not spam. In addition, additional thumbprints may be generated for the electronic message based on one or more variations of the numerical signature. The thumbprints may collectively be associated with the message content and its identification as spam or not spam.

Methods for identifying content in electronic messages may include receiving an electronic message classified as spam, detecting content in the received electronic message, identifying a numerical signature characterizing the content, determining at least one variation for the numerical signature, generating a thumbprint based on the numerical signature and a thumbprint based on the at least one variation, and storing the thumbprints in a database in memory for comparison to thumbprints of subsequently received messages. The subsequently received message may then be classified as spam or not spam based on the comparison.

Further methods for identifying content in electronic messages may include receiving an electronic message, detecting content included in the received electronic message, identifying a numerical signature characterizing the content, generating a thumbprint based on the numerical signature, and comparing the generated thumbprint to thumbprint information stored in a database. The electronic message may then classified as spam or not spam based on the comparison.

Systems for identifying content in electronic messages may include a memory configured to store a database of thumbprint information associated with each of a plurality of content found in electronic messages previously received and classified as spam, an interface configured to receive an electronic message; and a processor configured to execute instructions to detect content included in the received electronic message, identify metadata for the detected content, the metadata including a numerical signature characterizing the content, generate a thumbprint based on the numerical signature of the metadata, and compare the thumbprint to the thumbprint information stored in the database, wherein the electronic message is classified as spam or not spam based on the comparison.

In yet another embodiment of the present invention, computer-readable storage media is provided. Embodied on such computer-readable storage media may be a program that is executable by a processor to perform a method for identifying content in electronic messages.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a system for identifying content in electronic messages.

FIG. 2 illustrates a detection engine used for identifying content in electronic messages.

FIG. 3 illustrates a method for identifying content in electronic messages.

FIG. 4 illustrates a computing system that may be used to implement the detection engine of FIG. 2.

DETAILED DESCRIPTION

Embodiments of the present invention include systems and methods for identifying content in electronic messages. The content in a received electronic message may be analyzed to identify any metadata. Such metadata may include a numerical signature characterizing the content. For images, such a numerical signature may include dimension and color information. A thumbprint is generated based on the numerical signature. Rounding method may also be used to generate a thumbprint with respect to hashing of the numerical signature. The thumbprint may then be compared to thumbprints of previously received messages. The comparison allows for classification of the electronic message as spam or not spam in light of a library of previously generated and classified thumbprints. Additional thumbprints may be generated for the electronic message based on one or more variations of the numerical signature. The additional thumbprints may collectively be associated with the message content and identification of the message and its related content as being spam or not spam.

FIG. 1 illustrates a system 100 for identifying content in electronic messages. System 100 as illustrated in FIG. 1 includes clients 110 a and 110 b (message senders, collectively referred to as client 110) and client 120 (message recipient). An image-based electronic message 130 a and 130 b (collectively referred to as image-based message 130 or message 130) may be sent from clients 110 to client 120 over communication network 140. The image based messages 130 sent by clients 110 may be analyzed by detection engine 150 in conjunction with thumbprint database 160 before the image based messages 130 are delivered to client 120.

Clients 110 and 120 are inclusive of a general purpose computing device capable of accessing information over a communication network 140. Communication network 140 may be a local, proprietary network (e.g., an intranet) and/or may be a part of a larger wide-area network. For example, the communications network 140 may be a local area network (LAN), which may be communicatively coupled to a wide area network (WAN) such as the Internet. The Internet is a broad network of interconnected computers and servers allowing for the transmission and exchange of Internet Protocol (IP) data between users connected through a network service provider. Examples of network service providers are the public switched telephone network, a cable service provider, a provider of digital subscriber line (DSL) services, or a satellite service provider. Communication network 140 may further be inclusive of an intranet, extranet, private network, or other network.

Clients 110 and 120 may be implemented in workstations, servers, laptop computers, mobile devices, net books, or other computing devices that can communicate over communications network 140. Electronic messages sent by a user of client 110 to the user of client 120 may include legitimate exchanges on topics of interest to both the sender and recipient like the image-based message labeled as message 130 b. Alternatively, such messages may include unsolicited, commercial messages such as spam that are intentionally or unintentionally sent by user of client 110 a to client 120 and as illustrated by message 130 a.

As illustrated in FIG. 1, an unsolicited message like message 130 a may be visual and/or image-based; a legitimate message such as message 130 b may likewise be image-based. Examples of an image-based message include rich media, rich text, and actual images. The image may be in any digital image format, including JPG (joint photographic experts group), BMP (bitmap), PNG (portable network graphics), GIF (graphics interchange format), or TIF (tagged image file). The image in unsolicited image based message 130 a (as well as legitimate message 130 b) may be associated with metadata.

For example, an image found in unsolicited message 130 a may be a PNG image, which refers to a color table. Every pixel in the image refers to an entry in the color table and a particular location in the color table. In addition to color, metadata may also refer to the size dimensions of the image, authors, date created, date modified, and other information. Metadata for an exemplary image may be identified as follows

Image width 295 Image height 130 Color size 256 Color Table Entries Color Index Red Green Blue 0 207 143 114 1 160 105 82 2 247 234 216 3 139 143 141 . . . 255 11 11 11

While certain aspects of an image in an unsolicited message (130 a) may change due to the introduction of random noise or other deliberate and intentional efforts to mask a previously generated thumbprint that may have been generated for the spam image from an anti-spam application and corresponding database of fingerprints, certain metadata may remain the same. For example, a sender of unsolicited image-based message 130 a may preserve the message of the spam (e.g., changing “Viagra” to “Viagra” or cropping a pornographic image, which is still identifiable as such after being cropped). There are, however, limits to the extent of changes that a spammer can make to a message or image while still allowing for the message to be identifiable and convey the intent of the same.

Changes to the message are unlikely to change metadata as location of colors or the intensity of colors within the color table. A numerical signature for the image may be determined based on such metadata. For example, a numerical signature of a particular image may be a concatenation of dimensional and/or color values found in the metadata of the image. Such a numerical signature may be common to images in multiple messages sent by a particular message sender over communications network 140.

Detection engine 150 may intercept and examine electronic messages including those having image based message and sent to client 120 over communication network 140. Detection engine 150 may reside in a network device behind or as part of a firewall. The detection engine 150 of the network device determines, based on the examination of the intercepted message, whether the message is spam and/or not spam.

While spam detection may include various analyses, an exemplary examination of a message 130 received from a message sending client 110 and bound for delivery to the message recipient (client 120) may include detecting content in the message and identifying metadata associated with the content. Such metadata may include various values characterizing an aspect of the content such as dimension, color value, and image type. A numerical signature may then be generated based on the metadata. That numerical signature or thumbprint based on that numerical signature is compared to a database of thumbprints (160) of messages that have been previously identified as spam. Conversely, the database 160 may maintain thumbprints of legitimate messages (i.e., not spam) and allow for a comparison of the same. If there is a match of the newly received message notwithstanding variations to aspects of the content with a thumbprint of a previously identified spam message, the newly received but previously unclassified message may then be classified as spam as well. A margin of error or variation of one thumbprint to another may be allowed before classifying a new message as also being spam.

Thumbprint database 160 stores thumbprints from messages that have been previously identified as spam or, in some instances, messages that have been classified as not spam. When an electronic message is identified as spam by detection engine 150, by a user (e.g., a manual and subsequent identification of a message as spam notwithstanding the fact that it was actually delivered to the client 120 of the recipient), or by another entity (e.g., over a local or global network), the message is analyzed and thumbprinted for addition to the thumbprint database 160. Content is detected in the message, and metadata associated with such content is identified. The metadata may include numerical values characterizing the content. A numerical signature based on such numerical values may be thumbprinted.

In addition to generating a thumbprint based on the numerical signature of the content, variations on the signature may be determined. For example, an image with size dimensions (295, 130) may have variations of (300, 130), (290, 130), and (290, 120). Similar variations may be determined with respect to values characterizing color. For a message identified as spam, not only is the numerical signature thumbprinted, variations on the signature may also be thumbprinted. The resulting thumbprints are then stored in thumbprint database 160 as being associated with spam.

FIG. 2 illustrates a detection engine 150 used for identifying content in electronic messages. The detection engine 150 as illustrated in FIG. 2 includes a content filter 210, a metadata analyzer 220, a thumbprint generator 230, and classifier 240. While illustrated as being part of the detection engine 150, the component applications or modules may be housed separately and/or dynamically loaded and unloaded by hardware and device drivers as required. The components applications may also be incorporated as part of a larger software platform or integrated as part of an application specific component. In any event, the detection engine 150 and its constituent modules are executable by a processor or processors in or accessible to network device.

Content filter 210 is executable by a processor to parse and filter the content of an electronic message 130 received at the network device for processing by the detection engine 150. In an exemplary embodiment, content filter 210 may filter an electronic message 130 for visual and image-based content. Information concerning visual and image-based content may be detected and provided to other components of detection engine 150 for further examination or processing, such as metadata analyzer 220.

Metadata analyzer 220 may be a collection of routines used to extract and/or determine what metadata is associated with certain content. For example, certain formatted images (e.g., PNG) may require specific routines to extract metadata. In some embodiments, metadata analyzer 220 may also provide a numerical signature based on values characterizing the content. An exemplary numerical signature for a piece of image content may be a concatenation of the various numerical values characterizing the image. For messages that are already classified as spam, metadata analyzer 220 may be further executable by the processor determine one or more variations on the numerical signature. Each value in the numerical signature may or may not be rounded to the nearest integer, multiple of ten. The variations may or may not conform to a specified range relative to the original or rounded values.

Thumbprint generator 230 generates a thumbprint based on the numerical signature of a message and for any variation(s) thereof as determined by metadata analyzer 220. Multiple thumbprints may, therefore, be associated with the same message. A thumbprint may be generated based on any method of compression, including cryptographic or fuzzy hashing. If the message has already been identified as spam, the thumbprints may be provided to thumbprint database 160 for storage and comparison to subsequently received messages.

If a message has not yet been classified, the message may be provided to classifier 240. Classifier 240 is executable by the processor to access thumbprint database 160 and compare the thumbprint(s) generated by thumbprint generator 230 to those associated with identified spam messages or some other classification of message, including not spam. Based on the comparison, classifier 240 may classify the electronic message as spam or not spam. A message identified as not spam may be further processed and/or delivered to client 120. A message identified as spam (or not spam) may have its thumbprint(s) added to thumbprint database 160.

FIG. 3 illustrates a method 300 for identifying content in electronic messages. In the method 300 of FIG. 3, a classified electronic message is processed and content is detected. Metadata is identified and any corresponding variation. Thumbprints are then generated and stored in method 300 of FIG. 3. An unclassified message may be thumb printed and the thumbprints compared to those in storage. The unclassified message may then be classified based on the comparison.

In step 310, a classified electronic message is processed. The message may be classified as a spam (or not spam) message. This classification may be the result of the message coming from a known sender of spam messages or as a result of a user manually identifying a received message as spam upon review of the same. Classification may also have resulted from another entity on a network (global or local) having identified the message as being spam. Regardless of the means by which the message is initially classified as spam (not spam, or any other classification), the classified message is then routed to a detection engine 150 for thumb printing.

Content in the classified message is detected in step 320. Content filter 210, or a similar application, may detect one or more visual or image-based content in the classified message. The detected images are compared to select the largest one and may then be provided to metadata analyzer 220 for further analysis.

Each piece of visual or image-based content may then be examined to identify any metadata in step 330. Some types of images (e.g., GIF or PNG) may require specialized routines to extract the metadata associated with such images. The metadata extracted may refer to dimensional, color, authorship, and other characteristics of the visual or image content. A numerical signature may also be identified based on the metadata. In some cases, the values in the numerical signature may be rounded to a nearest integer or a multiple.

In step 340, at least one variation of the numerical signature is identified. The numerical signature may include any combination of the dimensional and/or color values characterizing the image. Any value may be adjusted in a variation. The amount of the adjustment may be in specified range from the original values.

In step 350, thumbprints are generated based on the numerical signature by thumbprint generator 230. In addition, thumbprints may be generated based on the variations of the numerical signature. Thumbprinting the variations in addition to the original numerical signature allows detection engine 150 to determine that an image is associated with identified spam in spite of any changes to the visual or image content since the identification.

In step 360, the thumbprints are provided to thumbprint database 160 for storage and comparison to subsequently received messages. Such subsequently received messages may then be unclassified as to whether they are spam or not spam.

In step 370, an unclassified message is received and thumbprinted by thumbprint generator 230. Specifically, the thumbprint(s) of the unclassified message is compared to the thumbprints stored in thumbprint database 160. Thumbprints for an unclassified message may be based on an original numerical signature, a rounded numerical signature, and/or determined variation(s) of the original or rounded numerical signature.

In step 380, the thumbprints may then be compared to those thumbprints stored in thumbprint database 160. The comparison may reveal a match with a thumbprint of a message that has been previously classified as spam or not spam. In step 390, the unclassified message is then classified by classifier 240 as spam or not spam based on the results of the comparison.

FIG. 4 illustrates a computing system 400 that may be used to implement the detection engine of FIG. 2. Computing system 400 may be representative of a network device as referred to in FIG. 1 and hosting the aforementioned detection engine 150. More specifically, the system 400 may execute a program embodied on a computer-readable storage medium to perform a method for identifying content in electronic messages. The computing system 400 of FIG. 4 includes one or more processors 410, memory 420, mass storage 430, portable storage 440, output devices 450, input devices 460, display system 470, and peripherals devices 480, which may be connected by a bus 490.

Main memory 420 stores, in part, instructions and data for execution by processor 410. Main memory 420 can store the executable code when in operation.

Mass storage device 430, which may be implemented with a magnetic disk drive or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor unit 410. Mass storage device 430 can store the system software for implementing embodiments of the present invention for purposes of loading that software into main memory 410.

Portable storage device 440 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, compact disk or digital video disc, to input and output data and code to and from the computer system 400 of FIG. 4. The system software for implementing embodiments of the present invention may be stored on such a portable medium and input to the computer system 400 via the portable storage device 440.

System 400 further includes output devices 450. Examples of output devices include speakers, printers, network interfaces, and monitors. Input devices 460 provide a portion of a user interface. Input devices 460 may include an alpha-numeric keypad, such as a keyboard, for inputting alpha-numeric and other information, or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys. An input device, in some instances, may be a network interface.

Display system 470 may include a liquid crystal display (LCD) or other suitable display device. Display system 470 receives textual and graphical information, and processes the information for output to the display device.

Peripherals 480 may include any type of computer support device to add additional functionality to the computer system. For example, peripheral device(s) 480 may include a modem or a router or some other network interface.

The components shown in FIG. 4 are depicted as being connected via a single bus 490. However, the components may be connected through one or more data transport means. For example, processor unit 410 and main memory 410 may be connected via a local microprocessor bus, and the mass storage device 430, peripheral device(s) 480, portable storage device 440, and display system 440 may be connected via one or more input/output (I/O) buses.

The components contained in the computer system 400 of FIG. 4 are those typically found in computer systems that may be suitable for use with embodiments of the present invention and are intended to represent a broad category of such computer components that are well known in the art. Thus, the computer system 400 of FIG. 4 can be a personal computer, hand held computing device, telephone, mobile computing device, workstation, server, minicomputer, mainframe computer, or any other computing device. The computer can also include different bus configurations, networked platforms, multi-processor platforms, etc. Various operating systems can be used including UNIX, Linux, Windows, Macintosh OS, Palm OS, and other suitable operating systems.

Computer-readable storage media refer to any medium or media that participate in providing instructions to a central processing unit (CPU) (e.g., processor 410) for execution. Such media can take many forms, including, but not limited to, non-volatile and volatile media such as optical or magnetic disks and dynamic memory, respectively. Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, a hard disk, magnetic tape, any other magnetic medium, a CD-ROM disk, digital video disk (DVD), any other optical medium, RAM, PROM, EPROM, a FLASHEPROM, any other memory chip or cartridge, which may be part of main memory 420, mass storage 430, or portable storage 440

Various forms of transmission media may be involved in carrying one or more sequences of one or more instructions to a CPU for execution. A bus carries the data to system RAM, from which a CPU retrieves and executes the instructions. The instructions received by system RAM can optionally be stored on a fixed disk either before or after execution by a CPU. Various forms of storage may likewise be implemented as well as the necessary network interfaces and network topologies to implement the same.

While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. The descriptions are not intended to limit the scope of the invention to the particular forms set forth herein. To the contrary, the present descriptions are intended to cover such alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims and otherwise appreciated by one of ordinary skill in the art. For example, analysis of metadata associated with an image may be used in the context of a search application implemented at a client device where a user searches for particular content or images or similar content or images using a thumbprint that might be stored in a database. Thus, the breadth and scope of a preferred embodiment should not be limited by any of the above-described exemplary embodiments. 

What is claimed is:
 1. A method for identifying content in electronic messages, the method comprising: storing a plurality of thumbprints in a database in memory, wherein each of the plurality of thumbprints is associated with messages identified as spam; receiving an electronic message sent over a communication network; and executing instructions stored in memory, wherein execution of the instructions by a processor: detects content in the received electronic message, identifies metadata including a numerical signature characterizing one or more colors in the content, generates a plurality of variations for the numerical signature, wherein each variation characterizes at least one aspect of content that is different from any content in the received electronic message, matches a thumbprint of at least one variation to one of the thumbprints stored in the database as being associated with spam, and classifies the received electronic message as spam based on the match.
 2. The method of claim 1, wherein the numerical signature includes one or more values of a color table.
 3. The method of claim 1, wherein the numerical signature includes one or more values of color intensity.
 4. The method of claim 1, wherein the numerical signature includes one or more locations of color.
 5. The method of claim 1, wherein the numerical signature is a concatenation of values relating to the colors in the content.
 6. The method of claim 1, wherein the numerical signature further characterizes dimensions of the content.
 7. The method of claim 1, further comprising generating a thumbprint for each of the variations and comparing the generated thumbprints to the stored thumbprints.
 8. The method of claim 7, further comprising storing the generated thumbprints in memory.
 9. The method of claim 1, wherein generating each variation includes adjusting a value in the numerical signature, wherein the adjustment falls in a specified range.
 10. A system for identifying content in electronic messages, the system comprising: memory that stores a plurality of thumbprints in a database, wherein each of the plurality of thumbprints is associated with messages identified as spam; a communication interface that receives an electronic message sent over a communication network; and a processor that executes instructions stored in memory, wherein execution of the instructions by the processor: detects content in the received electronic message, identifies metadata including a numerical signature characterizing one or more colors in the content, generates a plurality of variations for the numerical signature, wherein each variation characterizes at least one aspect of content that is different from any content in the received electronic message, matches a thumbprint of at least one variation to one of the thumbprints stored in the database as being associated with spam, and classifies the received electronic message as spam based on the match.
 11. The system of claim 10, wherein the numerical signature includes one or more values of a color table.
 12. The system of claim 10, wherein the numerical signature includes one or more values of color intensity.
 13. The system of claim 10, wherein the numerical signature includes one or more locations of color.
 14. The system of claim 10, wherein the numerical signature is a concatenation of values relating to the colors in the content.
 15. The system of claim 10, wherein the numerical signature further characterizes dimensions of the content.
 16. The system of claim 10, wherein the processor executes further instructions to generate a thumbprint for each of the variations and to compare the generated thumbprints to the stored thumbprints.
 17. The system of claim 16, wherein the memory further stores the generated thumbprints.
 18. The system of claim 10, wherein the processor generates each variation by adjusting a value in the numerical signature, wherein the adjustment falls in a specified range.
 19. A non-transitory computer-readable storage medium, having embodied thereon a program executable by a processor to perform a method for identifying content in electronic messages, the method comprising: storing a plurality of thumbprints in a database, wherein each of the plurality of thumbprints is associated with messages identified as spam; receiving an electronic message sent over a communication network; detecting content in the received electronic message; identifying metadata including a numerical signature characterizing one or more colors in the content; generating a plurality of variations for the numerical signature, wherein each variation characterizes at least one aspect of content that is different from any content in the received electronic message; matching a thumbprint of at least one variation to one of the thumbprints stored in the database as being associated with spam; and classifying the received electronic message as spam based on the match. 